|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
This file holds CPTPPortData class declaration. More...
Public Member Functions | |
| void | setPtpVersion (int) |
| Sets ptp version. More... | |
| int | getPtpVersion () |
| Gets ptp version. More... | |
| void | setPortState (PortState) |
| Sets the profile type. More... | |
| PortState | getPortState () |
| Gets the port state. More... | |
| string | getPortStateStr () |
| Returns the profile as a string. More... | |
| void | setRecommendedPortState (PortState) |
| Sets the recommended port state. More... | |
| PortState | getRecommendedPortState () |
| Gets the recommended port state. More... | |
| void | setDelayRequestInterval (int) |
| Sets the delay request interval. More... | |
| int | getDelayRequestInterval () |
| Gets the delay request interval. More... | |
| void | setAnnounceReceiptTimeout (int) |
| Sets the announcement receipt timout time. More... | |
| int | getAnnounceReceiptTimeout () |
| Gets the announcement receipt timout time. More... | |
| void | setAnnounceInterval (int) |
| Sets the announcement interval time. More... | |
| int | getAnnounceInterval () |
| Gets the announcement interval time. More... | |
| void | setSyncInterval (int) |
| Sets the sync interval time. More... | |
| int | getSyncInterval () |
| Gets the sync interval time. More... | |
| void | setSyncWaitLimit (long) |
| Sets the sync interval wait limit. More... | |
| int | getSyncWaitLimit () |
| Gets the sync interval wait limit. More... | |
| void | setSyncMsgCounter (int) |
| Sets the sync message counter. More... | |
| void | incrementSyncMsgCounter () |
| Increments the sync message counter. More... | |
| int | getSyncMsgCounter () |
| Gets the sync message counter. More... | |
| void | setDelayReqCounter (int) |
| Sets the delay request counter. More... | |
| void | incrementDelayReqCounter () |
| Increments the delay request counter. More... | |
| int | getDelayReqCounter () |
| Gets delay request count. More... | |
| void | setAnnounceSeqNum (double) |
| Sets the announce sequence number counter. More... | |
| double | getAnnounceSeqNum () |
| Gets the announce sequence number. More... | |
| void | setSyncSeqNum (double) |
| Sets the sync sequence number. More... | |
| double | getSyncSeqNum () |
| Gets the sync sequence number. More... | |
| void | setDecisionCode (DecisionCode) |
| Sets the decision code. More... | |
| DecisionCode | getDecisionCode () |
| Gets the recommended port state. More... | |
| void | setLastSyncSeqNum (double) |
| Sets the last sync sequence number. More... | |
| double | getLastSyncSeqNum () |
| Gets the last sync sequence number. More... | |
| void | setLastGeneralEventSeqNum (double) |
| Sets the last known general event sequence number. More... | |
| double | getLastGeneralEventSeqNum () |
| Gets the last general event sequence number. More... | |
| void | setBustEnabled (bool) |
| Sets bust to be enabled or disabled. More... | |
| bool | isBustEnabled () |
| Gets bust enabled state. More... | |
| bool | removeForeignMasterBySrcPortId (string, int) |
| Removes a foreign master by port. More... | |
| void | clearForeignMasterList () |
| Removes all the foreign masters. More... | |
| void | setEBestSrc (bool) |
| Sets the port data to be or not to be the best source for grandmaster clock. More... | |
| bool | isEBestSrc () |
| Check if this port data is the best source for grandmaster clock. More... | |
| void | resetDatasetToDefault () |
| Resets the data set to default. More... | |
| void | cancelTimer () |
| Cancels the timer. More... | |
| void | clearConfig () |
| Clears the config. More... | |
This file holds CPTPPortData class declaration.
| void PTPPortData::cancelTimer | ( | ) |
Cancels the timer.
| void PTPPortData::clearConfig | ( | ) |
Clears the config.
| void PTPPortData::clearForeignMasterList | ( | ) |
Removes all the foreign masters.
| int PTPPortData::getAnnounceInterval | ( | ) |
Gets the announcement interval time.
| int PTPPortData::getAnnounceReceiptTimeout | ( | ) |
Gets the announcement receipt timout time.
| double PTPPortData::getAnnounceSeqNum | ( | ) |
Gets the announce sequence number.
| DecisionCode PTPPortData::getDecisionCode | ( | ) |
Gets the recommended port state.
| int PTPPortData::getDelayReqCounter | ( | ) |
Gets delay request count.
| int PTPPortData::getDelayRequestInterval | ( | ) |
Gets the delay request interval.
| double PTPPortData::getLastGeneralEventSeqNum | ( | ) |
Gets the last general event sequence number.
| double PTPPortData::getLastSyncSeqNum | ( | ) |
Gets the last sync sequence number.
| PortState PTPPortData::getPortState | ( | ) |
Gets the port state.
| string PTPPortData::getPortStateStr | ( | ) |
Returns the profile as a string.
| int PTPPortData::getPtpVersion | ( | ) |
Gets ptp version.
| PortState PTPPortData::getRecommendedPortState | ( | ) |
Gets the recommended port state.
| int PTPPortData::getSyncInterval | ( | ) |
Gets the sync interval time.
| int PTPPortData::getSyncMsgCounter | ( | ) |
Gets the sync message counter.
| double PTPPortData::getSyncSeqNum | ( | ) |
Gets the sync sequence number.
| int PTPPortData::getSyncWaitLimit | ( | ) |
Gets the sync interval wait limit.
| void PTPPortData::incrementDelayReqCounter | ( | ) |
Increments the delay request counter.
| void PTPPortData::incrementSyncMsgCounter | ( | ) |
Increments the sync message counter.
| bool PTPPortData::isBustEnabled | ( | ) |
Gets bust enabled state.
| bool PTPPortData::isEBestSrc | ( | ) |
Check if this port data is the best source for grandmaster clock.
| bool PTPPortData::removeForeignMasterBySrcPortId | ( | string | , |
| int | |||
| ) |
Removes a foreign master by port.
| uuid,uuid | to find for. |
| portNum,port | to find for. |
| void PTPPortData::resetDatasetToDefault | ( | ) |
Resets the data set to default.
| void PTPPortData::setAnnounceInterval | ( | int | ) |
Sets the announcement interval time.
| num,the | time. |
| void PTPPortData::setAnnounceReceiptTimeout | ( | int | ) |
Sets the announcement receipt timout time.
| num,the | time. |
| void PTPPortData::setAnnounceSeqNum | ( | double | ) |
Sets the announce sequence number counter.
| num,value | to use. |
| void PTPPortData::setBustEnabled | ( | bool | ) |
Sets bust to be enabled or disabled.
| enable,true | to enable, false to disable. |
| void PTPPortData::setDecisionCode | ( | DecisionCode | ) |
Sets the decision code.
| code,the | code to use. codes: None = 0, M1 = 1, M2 = 2, M3 = 3, P1 = 4, P2 = 5, S1 = 6 |
| void PTPPortData::setDelayReqCounter | ( | int | ) |
Sets the delay request counter.
| num,value | to use. |
| void PTPPortData::setDelayRequestInterval | ( | int | ) |
Sets the delay request interval.
| num,the | delay time in seconds |
| void PTPPortData::setEBestSrc | ( | bool | ) |
Sets the port data to be or not to be the best source for grandmaster clock.
| value,true | if the port data is the best source for grandmaster clock and false otherwise. |
| void PTPPortData::setLastGeneralEventSeqNum | ( | double | ) |
Sets the last known general event sequence number.
| num,value | to use. |
| void PTPPortData::setLastSyncSeqNum | ( | double | ) |
Sets the last sync sequence number.
| num,value | to use. |
| void PTPPortData::setPortState | ( | PortState | ) |
Sets the profile type.
| state,the | port state to use. states: eFaulty = 0, eInit = 1, eDisabled = 2, eListening = 3, eUncalibrated = 4, ePreMaster = 5, eSlave = 6, eMaster = 7, ePassive = 8 |
| void PTPPortData::setPtpVersion | ( | int | ) |
Sets ptp version.
| num,version | number to use. |
| void PTPPortData::setRecommendedPortState | ( | PortState | ) |
Sets the recommended port state.
| state,the | port state to use. states: eFaulty = 0, eInit = 1, eDisabled = 2, eListening = 3, eUncalibrated = 4, ePreMaster = 5, eSlave = 6, eMaster = 7, ePassive = 8 |
| void PTPPortData::setSyncInterval | ( | int | ) |
Sets the sync interval time.
| num,the | time. |
| void PTPPortData::setSyncMsgCounter | ( | int | ) |
Sets the sync message counter.
| value,value | to use. |
| void PTPPortData::setSyncSeqNum | ( | double | ) |
Sets the sync sequence number.
| num,value | to use. |
| void PTPPortData::setSyncWaitLimit | ( | long | ) |
Sets the sync interval wait limit.
| num,the | wait. |